/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Lasse
 */
public class Stat {
    private int population;
    private String name;
    private int seats;
    private double quota;

    public Stat(String name,int population, int seats) {
        this.population = population;
        this.name = name;
        this.seats = seats;
        calQuota();
    }

    public void addSeats() {
        this.seats += 1;
        calQuota();
    }

    public int getSeats() {
        return seats;
    }
    
    

    public double getQuota() {
        return quota;
    }

    public String getName() {
        return name;
    }
    
    private void calQuota()
    {
        quota = population/Math.sqrt(seats*(seats+1));
    }
    
    
    
}
